package com.learn.project2.model.vo.admin.region;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @description： RegionListVO
 * @author： Yj
 * @create： 2022/01/07
 **/
@NoArgsConstructor
@Data
public class RegionListVO {

    private Integer total = 31;
    private Integer pages = 1;
    private Integer limit = 31;
    private Integer page = 1;
    private List<ListBean> list;

    @NoArgsConstructor
    @Data
    public static class ListBean {
        private Integer id;
        private String name;
        private Byte type;
        private Integer code;
        private List<ChildrenBean> children;

        @NoArgsConstructor
        @Data
        public static class ChildrenBean {
            private Integer id;
            private String name;
            private Byte type;
            private Integer code;
            private List<ChildrenBean2> children;

            @NoArgsConstructor
            @Data
            public static class ChildrenBean2 {
                private Integer id;
                private String name;
                private Byte type;
                private Integer code;
            }
        }
    }
}
